import type { App } from 'vue';

// 1.1 import pinia - root repo;
import { createPinia } from 'pinia'
// 1.2 createPinia
const store = createPinia()
// 1.3 export pinia
// export default pinia

// 1.32 export as function
export function setupStore(app: App<Element>) {
    app.use(store);
}

export {store};
  